﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.Text;

namespace FileChat
{
    public class YiiUtil
    {
        public static String MD5(string encodeStr) {
            byte[] result = Encoding.Default.GetBytes(encodeStr);
            MD5 md5 = new MD5CryptoServiceProvider();
            byte[] output = md5.ComputeHash(result);
            return BitConverter.ToString(output).Replace("-", "");  
        } 
    }
}
